package com.cndw.kungfu.model.battle;

/**
 * 怪物ai行为
 * 
 * @author fantadust [9677889@qq.com]
 * @date 2012-2-7 下午4:22:31
 */
public class AiAction {
	private int aid;
	/**
	 * 条件类型
	 */
	private int at;
	/**
	 * 条件值
	 */
	private int atv;

	/**
	 * 行为类型
	 */
	private int act;
	/**
	 * 行为id
	 */
	private int actid;
	/**
	 * 行为值
	 */
	private String actv;
	/**
	 * 自身血量达到
	 */
	public static final int typeHp = 1;
	/**
	 * 回合数
	 */
	public static final int typeRound = 2;
	/**
	 * 几率
	 */
	public static final int typeRate = 4;
	
	public static final int typeAtvTalk = 1;
	
	public static final int typeAtvSkill = 2;

	public boolean isTypeHp() {
		return at == typeHp;
	}

	public boolean isTypeRound() {
		return at == typeRound;
	}


	public boolean isTypeRate() {
		return at == typeRate;
	}

	
	public int getAid() {
		return aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public int getAt() {
		return at;
	}

	public void setAt(int at) {
		this.at = at;
	}

	public int getAtv() {
		return atv;
	}

	public void setAtv(int atv) {
		this.atv = atv;
	}

	public int getAct() {
		return act;
	}

	public void setAct(int act) {
		this.act = act;
	}

	public int getActid() {
		return actid;
	}

	public void setActid(int actid) {
		this.actid = actid;
	}

	public String getActv() {
		return actv;
	}

	public void setActv(String actv) {
		this.actv = actv;
	}



}
